import request from '@/utils/request'

// 检查退店条件
export function checkClosureConditions() {
  return request({
    url: '/store-closure/check-conditions',
    method: 'get'
  })
}

// 提交退店申请
export function submitClosureApplication(data) {
  return request({
    url: '/store-closure/apply',
    method: 'post',
    data
  })
}

// 获取退店申请状态
export function getClosureApplicationStatus() {
  return request({
    url: '/store-closure/status',
    method: 'get'
  })
}

// 取消退店申请
export function cancelClosureApplication() {
  return request({
    url: '/store-closure/cancel',
    method: 'post'
  })
}
